package com.xinke.module.system.model.vo.logger;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 系统访问记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class LoginLogRespVO {

    @Schema(description = "访问ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4010")
    @ExcelProperty("访问ID")
    private Long logId;

    @Schema(description = "日志类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("日志类型")
    private Long logType;

    @Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21682")
    @ExcelProperty("链路追踪编号")
    private String traceId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12004")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("用户类型")
    private Integer userType;

    @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("用户账号")
    private String userName;

    @Schema(description = "登录结果", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("登录结果")
    private Integer loginResult;

    @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("用户 IP")
    private String userIp;

    @Schema(description = "浏览器 UA", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("浏览器 UA")
    private String userAgent;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}